package Book;

public class BookList {
    private Book[] books = new Book[100];
    private int usedSize = 0;

    public BookList() {
        books[0] = new Book("c#", "清大", 11, "学习");
        books[1] = new Book("java", "梁勇", 22, "学习");
        books[2] = new Book("高并发", "张三", 33, "学习");
        this.usedSize = 3;

    }

    public Book getBook(int pos) {
        return this.books[pos];
    }

    public void setBooks(int pos, Book book) {
        this.books[pos] = book;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
